<template>
    <div>

<h2>news组件</h2>
<div>{{count}}</div>

    </div>
</template>

<script>
import  {mapGetters,mapState} from 'vuex'
export default {
    data() {
        return {

        };
    },
    created() {
        this.$axios.get('https://locally.uieee.com/categories')
        .then(res=>{
            console.log(res.data)
        })

    },
    mounted() {

    },
    methods: {

    },
    computed: {
        ...mapState(['count'])
    },
};
</script>

<style scoped   lang='css'>

</style>
